package com.zadtek.shopmall.bean;

import com.chad.library.adapter.base.entity.MultiItemEntity;

/**
 * Created by Zackv on 2018/3/14.
 */

public class MultiItem<T> implements MultiItemEntity {
    public static final int Type_Product = 1;
    public static final int Type_Home_Header =2;
    public static final int Type_Home_Shop =3;
    public static final int Type_Car_Product_header =4;
    public static final int Type_Car_Product =5;

    private int itemType;
    private boolean isSelected;
    private boolean isDeleted;
    private T data;

    public boolean isDeleted() {
        return isDeleted;
    }

    public void setDeleted(boolean deleted) {
        isDeleted = deleted;
    }

    public MultiItem(int itemType, T data) {
        this.itemType = itemType;
        this.data = data;
    }
    @Override
    public int getItemType() {
        return itemType;
    }

    public boolean isSelected() {
        return isSelected;
    }

    public void setSelected(boolean selected) {
        isSelected = selected;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
